package my_a10bbc.cn.xp.com.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;


import java.util.ArrayList;

import my_a10bbc.cn.xp.com.fragment.IIndexVpFragment;

/**
 * Created by Administrator on 2017/1/9.
 */
public class IIndexViewPagerAdapter extends FragmentStatePagerAdapter {
    private ArrayList<IIndexVpFragment> list;


    public IIndexViewPagerAdapter(FragmentManager fm,ArrayList<IIndexVpFragment> list) {
        super(fm);
        this.list=list;
    }



    @Override
    public Fragment getItem(int position) {
        return list.get(position);
    }

    @Override
    public int getCount() {
        return list.size();
    }



}
